public abstract class StartConsultationEvent extends EventBase {
	private PatientBase patient;
		
	public StartConsultationEvent(PatientBase patient) {
		this.patient = patient;
	}

	public boolean canOccur(State state) {
		if(state.isMDAvailable())
			return true;
		else
			return false;
	}


	public void execute(State s) {
		patient.setActivity(TreatmentType.Consultation);
		Simulator.addEvent(new EndConsultationEvent(patient, Simulator.nextNormal(10, 3)));
		
	}
}
